<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>
        <block name="title">个人中心</block>
    </title>
    <link rel="stylesheet" href="__LAYUI__/css/layui.css">
    <link rel="stylesheet" href="__PUBLIC__/style/space.css">
    <block name="style"></block>
</head>
<body>
<div class="fly-header layui-bg-black">
    <div class="layui-container">
        <ul class="layui-nav" lay-filter="nav">
            <li class="layui-nav-item">
                <a href=""><img src="{:format_logo(C('APP_LOGO'))}" class="layui-nav-img">{:C('APP_NAME')}</a>
            </li>
            <if condition="session('user.admin')">
                <li class="layui-nav-item space-nav-left">
                    <a href="/app">后台管理</a>
                </li>
            </if>
            <li class="layui-nav-item space-nav-right">
                <a href="javascript:;">
                    <img src="{:format_user_photo(session('user.id'))}" class="layui-nav-img">
                    {:session('user.nickname')}
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="/space/info">基本资料</a></dd>
                    <dd><a href="/space/password">修改密码</a></dd>
                    <dd><a href="{:C('AUTH.LOGOUT')}">退了</a></dd>
                </dl>
            </li>
        </ul>
    </div>
</div>
<div class="layui-container space-body">
    <include file="./Common/View/Public/menu.html"/>
    <div class="space-panel">
        <block name="main"></block>
    </div>
</div>
<include file="./Common/View/Public/footer.html"/>
<script src="__LAYUI__/layui.all.js"></script>
<script>
    //JavaScript代码区域
    layui.use(['element', 'jquery'], function () {
        var $ = window.$ = window.jQuery = layui.jquery;
        var element = layui.element;
        $('.space-menu a[href="__SELF__"]').closest('.layui-nav-item').addClass('layui-this');
    });
</script>
<script src="__PUBLIC__/sys/app.js"></script>
<script src="__PUBLIC__/sys/form.js"></script>
<block name="script"></block>
</body>
</html>